DevJourney

CPP/Add Two Numbers/main.cpp

#include<iostream>

int main() {
    int a,b,s;

    std::cout<<"Enter the first number: ";
    std::cin>>a;
    std::cout<<"Enter the second number: ";
    std::cin>>b;
    s = a + b;
    std::cout<<"The sum of "<<a<<" and "<<b<<" is "<<s<<std::endl;
}
View on GitHub